import { shallowReactive, type ShallowReactive } from "vue";
import { MapScene, SceneConfig } from "./mapScene";

export type RefMapScene = ShallowReactive<MapScene>;

/**
 * 创建响应式地图场景对象
 * @param config 地图场景配置
 * @returns 响应式地图场景对象
 */
export function createRefMapScene(config: SceneConfig): RefMapScene {
    return shallowReactive(new MapScene(config));
}
